<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>时间模板管理</title>
    <link href="../lib/layui/css/layui.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="../css/date.css" rel="stylesheet" type="text/css" media="screen" />
    <script  src="../lib/jquery-3.3.1.min.js" type="text/javascript" ></script>
    <script  src="../lib/layui/layui.js" type="text/javascript" ></script>
    <script  src="../lib/xm-select.js" type="text/javascript" ></script>
    <script  src="../lib/date.js" type="text/javascript" ></script>
    <script src="../js/cdzxkacs/timeTemplateMgr.js" type="text/javascript" ></script>
    <script type="text/html" id="barOperate">
        <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    </script>
</head>
<style type="text/css">
    /*css调整部分*/
    xm-select .scroll-body{
        margin-top: -5px;
    }
    xm-select .xm-body{
        padding: 0;
        border: none;
        background-color: usnet;
        box-shadow: none;
    }
    .layui-form-select dl {
        max-height: 160px;
    }

    .floor-item {
        height: 30px;
        line-height: 30px;
        font-size: 18px;
        margin-top: 5px;
    }

    .floor-item-text {
        margin-left: 10px;
    }
</style>
<body class="layui-layout-body" style="background-color:white;padding: 10px">
    <div id="uploadDiv" style="display: none">
        <form class="layui-form" lay-filter="resource_form" id="resource_form" style="margin-top:5%">
            <input style="display: none" id="id" name="id">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">模板名称:</label>
                    <div class="layui-input-inline">
                        <input class="layui-input" name="name" id="templateName" autocomplete="off" lay-verify="required"/>
                    </div>
                    <label class="layui-form-label">布防计划</label>
                    <div class="layui-input-inline">
                        <input id="enPlan" type="radio" name="enabled" value="1" title="启用" checked="">
                        <input id="disPlan" type="radio" name="enabled" value="0" title="禁用">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">例外日期</label>
                    <div class="layui-input-inline">
                        <div id="exceptionDate" style="width: 646px;"></div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div style="margin-left: 5px">
                    <div id="data"></div>
                </div>
            </div>
            <div class='layui-input-block' style="margin-top: 20px">
                <button class="layui-btn" id="upload_form" lay-submit="" lay-filter="upload_form">提交</button>
                <button class="layui-btn"  id="cancel_form">取消</button>
            </div>
        </form>
    </div>
    <div class="layui-tab-brief" lay-filter="docDemoTabBrief">
        <div>
            <div class="layui-inline" style="margin-bottom: 10px;z-index: 2">
                <form class="layui-form">
                    <div class="layui-input-inline">
                        <select name="communityId" id="communityId" lay-filter="communityId" >
                        </select>
                    </div>
                </form>
            </div>
            <div class="layui-row">
                <div class="layui-col-xs2 floor-group" style="overflow:scroll;height: 540px;box-shadow: 0px 0px 5px #888888;">
                </div>
                <div class="layui-col-xs10">
                    <fieldset class="layui-elem-field site-demo-button" style="margin-left:10px">

                        <div style="float: left;margin-top:10px; height: 45px">
                            <form class="layui-form" lay-filter="serch_form">
                                <div class="layui-input-inline">
                                    <button class="layui-btn"  type="button" onclick="reload()">刷新</button>
                                    <button class="layui-btn" type="button" onclick="addTimeTemplate()">添加时间模板</button>
                                </div>
                            </form>
                        </div>
                    </fieldset>

                    <div class="layui-tab-item layui-show" style="margin-left: 10px">
                        <table id="timeTemplateTable" lay-filter="timeTemplateTable"></table>
                    </div>

                </div>

            </div>

        </div>
    </div>
</body>
</html>